<?php

/*

  Action – Duration	$3

  +2 Actions, +$1
  At the start of your next turn: +1 Action; +$1.

 */

class FishingVillage extends Card implements iAction, iKingdom, iDuration, iSeaside {

    public function __construct() {
        parent::__construct("Fishing Village", 3);
        $this->duration = 1;
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+2 Actions",
            "+$1",
            "At the start of your next turn: +1 Action; +$1.");
    }
    
    public function play(Game $game, $isRealCard) {
        $game->addMoney(new Price(1));
        $game->addActions(2);
         ScreenDisplay::addScreenMessage($game, true, "get +2 actions and  +1$", "gets +2 actions and +1$");

        $game->pushCardToDurationAffects($this, 1, $isRealCard);
		$game->cardActionFinished();
        return true;
    }

    public function cleanup(Game $game) {
        $game->moveCardFromPileToPile($this, PlayArea, DurationPileCards);
    }

    public function startTurn(Game $game, $quantity) {
        $game->addMoney(new Price(1));
        $game->addActions(1);
         ScreenDisplay::addScreenMessage($game, true, "activate ".  nicePrint($this)." and get +1 action and +1$", "activates ". ScreenDisplay::$LMSG." and gets +1 action and +1$");
        if ($quantity > 0)
            return RETURN_DURATION_TO_DISCARD;
        else
            return DELETE_VIRTUAL_DURATION_CARD;
    }

}

?>